var Radio = require("./radio.js");

var radio = new Radio("music radio", "FM 106.7");
radio.on("open", () => {
    radio.play();
}
)
radio.on("close", () => {
    radio.stop();
})

setTimeout(() => {
    radio.emit("open");
},1000);

setTimeout(() => {
    radio.emit("close");
},3000);